home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
base
/
fntguide.tex
/
node18_mn.html
< prev
next >
Wrap
Text File
|
1995-03-15
|
4KB
|
86 lines
<H2><A ID="SECTION00046000000000000000"><tex2html_anchor_invisible_mark></A>
<A ID="Sec:math.commands"><tex2html_anchor_mark></A><BR>
Declaring math symbols
</H2><FONT SIZE="+4"><I>
<#406#>decl<#406#>
| | <#407#>symbol<#407#> <#408#>type<#408#> <#409#>sym-font-name<#409#>
<#410#>slot<#410#>
The <#412#>symbol<#412#> can be either a single character such as `|;SPMgt;;SPMgt;|', or a
macro name, such as |&sum#sum;|.
Defines the <#413#>symbol<#413#> to be a math symbol of type
<#414#>type<#414#> in slot <#415#>slot<#415#> of symbol font <#416#>sym-font-name<#416#>. The
<#417#>type<#417#> can be given as a number or as a command:
<#418#>center<#418#>
<#419#>tabular<#419#><#420#>ccc<#420#>
<B>Type</B> ;SPMamp; <B>Meaning</B> ;SPMamp; <B>Example</B>
<BR> |0| or || ;SPMamp; Ordinary ;SPMamp; <B><I>α</I></B>
<BR> |1| or || ;SPMamp; Large operator ;SPMamp; <B><tex2html_image_mark>#tex2html_wrap_inline1819#</B>
<BR> |2| or || ;SPMamp; Binary operation ;SPMamp; <B>×</B>
<BR> |3| or || ;SPMamp; Relation ;SPMamp; <B>≤</B>
<BR> |4| or || ;SPMamp; Opening ;SPMamp; <B>〈</B>
<BR> |5| or || ;SPMamp; Closing ;SPMamp; <B>〉</B>
<BR> |6| or || ;SPMamp; Punctuation ;SPMamp; <B>;</B>
<BR> |7| or || ;SPMamp; Alphabet character ;SPMamp; <B><I>A</I></B>
Only symbols of type || will be affected by math alphabet
commands: within the argument of a math alphabet command they will
produce the character in slot <#426#>slot<#426#> of that math alphabet's font.
Symbols of other types will always produce the same symbol
(within one math version).
| | allows a macro <#427#>symbol<#427#> to be redefined only if
it was previously defined to be a math symbol.
It also checks that the <#428#>sym-font-name<#428#> is a
declared symbol font.
Example:
<#429#>tex2html_preform<#429#><tex2html_verbatim_mark>verbatim54#
<#431#>decl<#431#>
|| <#432#>cmd<#432#> <#433#>type<#433#>
<#434#>sym-font-name-1<#434#> <#435#>slot-1<#435#>
<BR> <#436#>sym-font-name-2<#436#> <#437#>slot-2<#437#>
Defines <#439#>cmd<#439#> to be a math delimiter where the small
variant is in slot <#440#>slot-1<#440#> of symbol font
<#441#>sym-font-name-1<#441#> and the large variant is in slot
<#442#>slot-2<#442#> of symbol font <#443#>sym-font-name-2<#443#>. Both symbol fonts
must have been declared previously.
Checks that <#444#>sym-font-name-i<#444#> are both
declared symbol fonts.
If T<SMALL>E</SMALL>X<#445#><#445#> is not looking for a delimiter, <#446#>cmd<#446#> is treated just as
if it had been defined with | | using
<#447#>type<#447#>,<#448#>sym-font-name-1<#448#> and <#449#>slot-1<#449#>. In other words, if a
command is defined as a delimiter then this automatically defines it
as a math symbol.
Example:
<#450#>tex2html_preform<#450#><tex2html_verbatim_mark>verbatim55#
<#452#>decl<#452#>
|| <#453#>cmd<#453#> <#454#>type<#454#> <#455#>sym-font-name<#455#> <#456#>slot<#456#>
Defines <#458#>cmd<#458#> to act as a math accent.
The accent character comes from slot <#459#>slot<#459#> in
<#460#>sym-font-name<#460#>. The <#461#>type<#461#> can be either
|| or ||; in the latter case the accent character
changes font when used in a math alphabet.
Example:
<#462#>tex2html_preform<#462#><tex2html_verbatim_mark>verbatim56#
<#464#>decl<#464#>
|| <#465#>cmd<#465#>
<#466#>sym-font-name-1<#466#> <#467#>slot-1<#467#>
<BR> <#468#>sym-font-name-2<#468#> <#469#>slot-2<#469#>
Defines <#471#>cmd<#471#> to be a radical where the small variant is in
slot <#472#>slot-1<#472#> of symbol font <#473#>sym-font-name-1<#473#> and the
large variant is in slot <#474#>slot-2<#474#> of symbol font
<#475#>sym-font-name-2<#475#>. Both symbol fonts must have been declared
previously.
Example (probably the only use for it!):
<#476#>tex2html_preform<#476#><tex2html_verbatim_mark>verbatim57#</I></FONT>